﻿@using SplendidCRM.Ext
@using SplendidCRM.Ext.CCBackendService
@model BalanceRecordType[]

@{
    var formId = Guid.NewGuid();
}

<div id="@formId" class="form-grid">
        <div  class="form-header">Result query</div>
        <table>
            <thead>
                <tr>
                    <td>Balance</td>
                    <td>BalanceDesc</td>
                </tr>    
            </thead>
            <tbody class="ui-inline-template" data-bind="each: { source: model}">
                <tr>
                    <td>${format(data.ExpireTime)}</td>
                    <td>${format(data.BalanceDesc)}</td>
                </tr>
            </tbody>
        </table>
    </div>    


<script type="text/javascript">
$(function () {
    var model = @Html.Raw(Model.Json(true)) ;
    linq.model(model, '#@formId');
});

</script>
